{% extends 'account/account_base.html' %}

{% block content %}
    <div class="centered">
        <div class="information">
            <h2>Forgotten your password?</h2>
            <div class="line"></div>
            <p>Enter your e-mail address to obtain a new password</p>
        </div>
        {{ form.errors }}
        <form action="{% url 'password_reset' %}" method="POST">
            {% csrf_token %}
            <div>
                {% for field in form %}
                    <div class="fields">
                        {% if field.errors %}
                            <div class="field-errors">{{ field }}</div>
                        {% else %}
                            {{ field.label }}
                            {{ field }}
                        {% endif %}
                    </div>
                {% endfor %}
            </div>
            
            <button type="submit" class="btn btn-success">Send by email</button>
        </form>
    </div>
{% endblock content %}
